﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="思路广惠">
    <title>订单页面</title>
    
    
    
    <meta content="telephone=no" name="format-detection" />
     
    
    <link rel="stylesheet" type="text/css" href="../../src/css/base.css?1.0" />
</head>
<body class="body-bg">
    <header class="header clearfix">
        <a href="javascript: history.go(-1);" class="head-le"><i class="iconfont icon-fanhui i2m"></i></a>
        <div class="header-txt">确认订单</div>
    </header>
    <section>
          
	    <div class="pad1rem bg-fff  s13m flexs">
	    	<div class="flexs-al">
	        	<img src="../../src/images/icon-location.png" />  
	       </div>
	       <div class="pad-lr">
		       	<p class="col3">
		            <span class="address"> </span>
		            <span class="address"> </span>
		        </p>
		        <a class="flexs-bw col3" href="../center/addchoose.html">
		        	
		            
		            <span class="address"></span>
		            <i class="iconfont icon-gengduo i2m"></i>
		        </a>
	       </div>
	        
	    </div>
           
    </section>
    <footer class="bottom-nav" >
    	<div class="flexs-bw bg-fff">
    		<p class="flexs-al col3 s12m pad-lr">合计： ￥<span class="huef36">22.00</span> </p>
            <a href="payment.html" class="orders" >提交订单</a>
         
    	</div>
            
    </footer>  
    <script src="http://apps.bdimg.com/libs/laytpl.js/1.1/laytpl.js"></script>
	<script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/layer/3.0.1/mobile/layer.js"></script>
    <script src="../../src/js/all.js" type="text/javascript" charset="utf-8"></script>
    <script>    
        
            var Address_ID = "";
            // 显示默认地址判断显示
            $.get(urls + "/WorkMembersAddress/GetAddressByMembersID", { MembersID: MembersID, AppID: AppID, Token: Token }, function (res) {
               
                if (res.Return_ID == 0) {
                    if (res.Return_Data.PageData.length == 0) {
                        layer.open({
                            content: '您还没有设置收货地址，请点击这里设置！',
                            shadeClose: false,
                            btn: ['确定', '取消'],
                            yes: function (index) {
                                window.location.replace("/center/address");
                            },
                            no: function (index, layero) {
                                window.location.replace("Index");
                            }
                        });
                    } else {
                        for (var i = 0; i < res.Return_Data.PageData.length; i++) {
                            if (res.Return_Data.PageData[i].MembersAddress_Mark == 1) {
                                Address_ID = res.Return_Data.PageData[i].Address_ID;
                                silks.setAssign([
									res.Return_Data.PageData[i].MembersAddress_Receiver,
									res.Return_Data.PageData[i].MembersAddress_Phone,
									res.Return_Data.PageData[i].MembersAddress_Address
                                ], ".address");

                            }
                        }
                    }
                }
            }); 
       
    </script>

</body>

</html> 